package com.mazaiting.instructions.base;

import com.mazaiting.rtda.MtFrame;
import lombok.Data;

/**
 * 存储和加载类指令需要根据索引存取局部变量表，索引由单字节操作数给出
 *
 * @author mazaiting
 * @since 2021/8/14
 */
@Data
public class Index8Instruction implements Instruction{
    /**
     * 局部变量表索引 u1
     */
    protected int index;

    @Override
    public void fetchOperands(BytecodeReader reader) {
        this.index = reader.readU1ToUnsignedByte();
    }

    @Override
    public void execute(MtFrame frame) {

    }
}
